package org.jeecg.modules.leave.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.jeecg.common.system.vo.LoginUser;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.leave.entity.AgLeave;

import java.util.List;

/**
 * @Description: ag_leave
 * @Author: jeecg-boot
 * @Date:   2020-05-18
 * @Version: V1.0
 */
public interface IAgLeaveService extends IService<AgLeave> {

    void startFlow(AgLeave agLeave, LoginUser loginUser);

    IPage<AgLeave> taskList(List<String> roleList, Integer pageNo, Integer pageSize);

    void complateTask(LoginUser loginUser, String taskId, Integer status, String memo, Integer go2xiaoj, String auditUser);

    void applyAgin(AgLeave agLeave);

    IPage<AgLeave> myApplyList(Page<AgLeave> page, LoginUser user, AgLeave agLeave);

    IPage<AgLeave> myTodoTasks(Page<AgLeave> page, LoginUser user, AgLeave agLeave);

    IPage<AgLeave> myDoneTasks(Page<AgLeave> page, LoginUser user, AgLeave hqCggl);
}
